package com.example.ssss.state;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class HomeStateViewModel extends ViewModel {

    private MutableLiveData<String> mText;
    private String userId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public HomeStateViewModel() {
        mText = new MutableLiveData<>();
        mText.setValue("This is Home fragment");
    }

    public void setmText(String s) {
        this.mText.setValue(s);
    }

    public LiveData<String> getText() {
        return mText;
    }
}